

package com.hazelcast.config.security;

import com.hazelcast.config.LoginModuleConfig;
import com.hazelcast.config.LoginModuleConfig.LoginModuleUsage;

/**
 * Default {@link AuthenticationConfig} implementation which just references the {@code DefaultLoginModule}.
 */
public final class DefaultAuthenticationConfig implements AuthenticationConfig {

    /**
     * Singleton instance.
     */
    public static final DefaultAuthenticationConfig INSTANCE = new DefaultAuthenticationConfig();

    private DefaultAuthenticationConfig() {
    }

    @Override
    public LoginModuleConfig[] asLoginModuleConfigs() {
        return new LoginModuleConfig[]{new LoginModuleConfig("com.hazelcast.security.loginimpl.DefaultLoginModule", LoginModuleUsage.REQUIRED)};
    }

}
